package rxb.demo.hwjentity;

import java.io.Serializable;

/**
 * Created by Administrator on 2019/12/27 0027.
 */
public class news implements Serializable {
    //对象标识
    private Integer id;

    //图书名称
    private String bookName;

    //图书简介
    private String intro;

    //图书对应的图片的名称或者图片的url
    private String imgUrl;

    public news() {
    }

    public news(String bookName, String intro, String imgUrl) {
        this.bookName = bookName;
        this.intro = intro;
        this.imgUrl = imgUrl;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public String getIntro() {
        return intro;
    }

    public void setIntro(String intro) {
        this.intro = intro;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("Book{");
        sb.append("id=").append(id);
        sb.append(", bookName='").append(bookName).append('\'');
        sb.append(", intro='").append(intro).append('\'');
        sb.append(", imgUrl='").append(imgUrl).append('\'');
        sb.append('}');
        return sb.toString();
    }
}
